﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq;
using System.Diagnostics;
using CSW.Framework.Common;
using CSW.Framework.Common.Data;

namespace CSW.Security
{
    /// <summary>
    /// Security.AppFunction
    /// </summary>
    partial class Security_AppFunction
    {
        partial void OnCreated()
        {
            base_OnCreated();
        }

        partial void OnLoaded()
        {
            base_OnLoaded();
        }

        partial void OnValidate(ChangeAction action)
        {
            base_OnValidate(action);
        }

        partial void OnAppFunctionIDChanging(int value)
        {
            GeneratedOnAppFunctionIDChanging(value);
        }

        partial void OnDescriptionChanging(string value)
        {
            GeneratedOnDescriptionChanging(value);
        }

        /// <summary>
        /// Gets all of the AppFunction records from the databases.
        /// </summary>
        public static IEnumerable<Security_AppFunction> GetAll()
        {
            return from s in SecurityTest.DataContextInstance.Security_AppFunction
                   orderby s.AppFunctionID
                   select s;
        }
    }
}
